/**
 * @author: XJC
 * @date: 2023-12-12 16:46
 * @description：locatorManage
 * @update: 2023-12-12 16:46
 */
import request from '@/utils/request'

// 合并货位
export function mergeFn(data) {
  return request({
    url: '/goodsShelvesPosition/merge',
    method: 'post',
    data
  })
}
// 拆分货位
export function splitFn(data) {
  return request({
    url: '/goodsShelvesPosition/split',
    method: 'post',
    data
  })
}

// 配置单重进行中
export function updateSingleWeightStatus(data) {
  return request({
    url: '/goodsInfo/updateSingleWeightStatus',
    method: 'put',
    data
  })
}

// 修改物料单重
export function updateSingleWeight(data) {
  return request({
    url: '/goodsInfo/updateSingleWeight',
    method: 'put',
    data
  })
}
// 清零去皮
export function zero(data) {
  return request({
    url: '/goodsShelvesPosition/zero',
    method: 'get',
    params: data
  })
}
// 绑定物料
export function bindSave(data) {
  return request({
    url: '/goodsPositionBind/save',
    method: 'post',
    data
  })
}
// 解绑物料
export function unbindSave(data) {
  return request({
    url: '/goodsPositionBind/removeByIds',
    method: 'DELETE',
    data
  })
}

export function updateRange(data) {
  return request({
    url: '/goodsInfo/updateRange',
    method: 'post',
    data
  })
}

export function singleWeight(data) {
  return request({
    url: '/goodsInfo/singleWeight',
    method: 'post',
    data
  })
}


